<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%--
  ~ Copyright (c) 2017 22420103@QQ.COM 版权所有
  ~
  --%>

<div class="col-sm-3">
	<form id='menuQueryForm'>
	<div class="input-group">
		<input value="${parameterDto.name }" type="text" name="name" class="form-control search-query" placeholder="输入菜单名称">

		<span class="input-group-btn">
			<button type="button" class="btn btn-purple btn-sm" onclick="refreshPage()">
				<span class="ace-icon fa fa-search icon-on-right bigger-110"></span>
				查询
			</button>
			<button style="margin-left:10px;" type="button" class="btn btn-primary btn-sm" onclick="addMenu()">
				<span class="ace-icon fa fa-plus icon-on-right bigger-110"></span>
				新增
			</button>
		</span>
	</div>
	</form>
</div>

<div id="delMenuDialog" style="padding-top: 13px;display:none;">
	<table id="table_report" class="table table-striped table-bordered table-hover">
		<tbody>
		<tr id="inNumber">
			<td align="right" style="width:100px;">菜单授权码：</td>
			<td align="left"><input id='key' type="text" class="form-control" placeholder="请输入菜单授权码" style="width:98%;"></td>
		</tr>
		<tr>
			<td colspan="2">
			<div id="promptTxt" style="padding:10px;color:#f00;"></div>
			</td>
		</tr>
		</tbody>
	</table>
</div>

<div class="col-xs-12" style="margin-top:5px;">
	<table id="simple-table" class="table table-bordered table-hover">
		<thead>
			<tr>
				<th class="center">菜单ID</th>
				<th class="center">菜单名称</th>
				<th class="center">菜单URL</th>
				<th class="center">菜单父ID</th>
				<th class="center">菜单排序</th>
				<th class="center">菜单标志</th>
				<th class="center">菜单图标</th>
				<th class="center">菜单类型</th>
				<th class="center">操作</th>
			</tr>
		</thead>
		
		<tbody>
			<c:forEach items="${data}" var="item" varStatus="i">
		       <tr>
					<td class="center">${item.id }</td>
					<td class="center">${item.name }</td>
					<td class="center">${item.url }</td>
				    <td class="center">${item.parentId }</td>
				    <td class="center">${item.orderBy }</td>
				    <td class="center">${item.menuNo }</td>
				    <td class="center">${item.icon }</td>
				    <td class="center">${item.type }</td>
					<td class="center">
						<a class="btn btn-xs btn-danger" title="查看菜单" onclick="seeDetail('${item.id}');">修改菜单</a>
						<a class="btn btn-xs btn-danger" title="删除菜单" onclick="delMenu('${item.id}');">删除菜单</a>
					</td>
				</tr>
		    </c:forEach>
				
			</tbody>
		</table>
		<%@include file="../paging.jsp" %>
</div>

